import React from 'react';
import Reflux from 'reflux';
import {YwhCard} from '../../../../../components/ywh/YwhCard';

import * as ReactMixin from "react-mixin";
import Store from "./Store";
import Actions from "./Actions";

class YwhList extends React.Component{
  constructor(props) {
    super(props);
  }

  componentWillMount() {
    Actions.getXiaoqu();
  }

  render() {
    return (
      <div>
        {this.state.ywhList.xq.map(ywh => YwhCard(ywh))}
      </div>
    );
  }
}

ReactMixin.onClass(YwhList, Reflux.connect(Store, 'ywhList'));

export default YwhList;
